import { createRouter, createWebHashHistory } from "vue-router";
import index from "../pages/Index/index.vue";
import error from "@/components/error.vue";
import Map from "@/pages/Map/index.vue";
import bim from "@/pages/Bim/index.vue";
const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      component: index,
    },
    {
      path: "/map",
      component: Map,
    },
    {
      path: "/bim",
      component: bim,
    },
    {
      path: "/:pathMatch(.*)*",
      component: error,
    },
  ],
});

export default router;
